package com.pro.common.service.file.model.dto;

import com.pro.framework.javatodb.annotation.JTDField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "文件 DTO")
public class FileUploadDTO {

    @Schema(description = "用户Id") // UserFileNodeId
    private Long userId;

    @Schema(description = "父级ID") // UserFileNodeId
    @JTDField(defaultValue = "0")
    private Long parentId;

    @Schema(description = "节点名称")
    private String nodeName;

    @Schema(description = "MIME类型")
    private String contentType;

    @Schema(description = "文件大小")
    private Long sizeBytes;

    @Schema(description = "文件哈希（MD5/SHA1）用于秒传、去重")
    private String fileHash;

    @Schema(description = "创建人ID")
    private Long createdBy;
}
